package com.cargohu.aishouyu.operation.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 添加APP版本信息参数
 *
 * @author yww
 * @since 2023-11-29
 */
@Data
@Schema(description = "添加APP版本信息参数")
public class AppVersionAddDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "平台 1-安卓 2-IOS")
    @NotBlank(message = "平台 1-安卓 2-IOS不能为空")
    @Length(max = 2, message = "平台 1-安卓 2-IOS长度超过限制")
    private String platform;

    @Schema(description = "版本号")
    @NotBlank(message = "版本号不能为空")
    @Length(max = 15, message = "版本号长度超过限制")
    private String version;

    @Schema(description = "是否强制更新 0-否，1-是")
    @Length(max = 1, message = "是否强制更新 0-否，1-是长度超过限制")
    private String forceUpdate;

    @Schema(description = "跳转链接")
    @Length(max = 300, message = "跳转链接长度超过限制")
    private String jumpLink;

    @Schema(description = "更新内容")
    @Length(max = 65535, message = "更新内容长度超过限制")
    private String updateContent;

    @Schema(description = "删除标记，0未删除，1已删除")
    @Length(max = 1, message = "删除标记，0未删除，1已删除长度超过限制")
    private String delFlag;

}


